package cn.cdqf.coupon.dispatch;

import com.github.tobato.fastdfs.service.DefaultGenerateStorageClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

//@SpringBootApplication
@MapperScan("cn.cdqf.coupon.dispatch.dao")
@EnableSwagger2
@EnableAsync
@ComponentScan({"cn.cdqf.globle","cn.cdqf.coupon"})
//@EnableDiscoveryClient
@EnableFeignClients
//@EnableCircuitBreaker//开启hystrix支持
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
public class DispatchApplication {
    public static void main(String[] args) {
        SpringApplication.run(DispatchApplication.class);
    }
}
